package zhr.chapter9;

import javax.swing.*;

public class JLabelDemo extends JFrame {
    private  JLabel label;
    public JLabelDemo(){
        label=new JLabel("Hello World");
        label.setBounds(10,10,150,20);
        this.add(label);
        this.setLayout(null);
        this.setBounds(50,50,300,200);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setVisible(true);
    }
}
